-
Notifications
You must be signed in to change notification settings - Fork 9
Added TF specific documentation to DistributedEmbedding
.
#94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4939b13
to
2bd6f5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval with a couple minor nits in-line.
|
||
In addition to `tf.Tensor`, `DistributedEmbedding` accepts `tf.RaggedTensor` | ||
and `tf.SparseTensor` as inputs for the embedding lookups. Ragged tensors | ||
must be ragged in dimension 1. Note that if weights are passed, each weight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is dimension 1 the dimension with index 0? Does TF actually support any other kind of raggedness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant dimension with index 1. TF supports any ragged dimension and in fact multiple ragged dimensions, a tensor can be twice ragged.
https://www.tensorflow.org/api_docs/python/tf/RaggedTensor#multiple_ragged_dimensions
https://www.tensorflow.org/api_docs/python/tf/RaggedTensor#attributes (see ragged_rank
)
In addition to `tf.Tensor`, `DistributedEmbedding` accepts `tf.RaggedTensor` | ||
and `tf.SparseTensor` as inputs for the embedding lookups. Ragged tensors | ||
must be ragged in dimension 1. Note that if weights are passed, each weight | ||
tensor must be of the same type as the inputs for that particular feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"same type" might be a bit confusing because we expect the datatype for indices to be integers, but weights to be floats.
Same class?
No description provided.